package cn.demo;

import cn.demo.Controller.UserController;

import cn.demo.config.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestMvc {
    public static void main(String[] args) {
        ApplicationContext Context =
                new AnnotationConfigApplicationContext(SpringConfig.class);
        UserController bean = Context.getBean(UserController.class);
        bean.addUser();
    }
}
